<template>
  <div>
    <div id="lnrshzlnl" style="text-align:center" ref="print">
      <oldShzlnlTemplate></oldShzlnlTemplate>
    </div>
    <div class="error500-btn-con" style='text-align:center;'>
      <el-button @click="myprint" style="width: 200px;margin-top:10px" type='primary'>打印</el-button>
    </div>
  </div>
</template>
<script>
import html2canvas from 'html2canvas'
import oldShzlnlTemplate from './oldShzlnlTemplate'
export default {
  components: {
    oldShzlnlTemplate
  },
  data() {
    return {
      loading: false,
      jktjid: this.$route.query.id,
      grjbxxid: this.$route.query.grjbxxid,
      dnbh: '',
      form: {}
    }
  },
  created() {},
  mounted() {},
  methods: {
    //打印
    myprint() {
      this.$print(this.$refs.print) // 使用
    },
    breaks() {}
  },
  computed: {}
}
</script>

<style>
</style>